# -*- coding: utf-8 -*-
"""
Created on Wed Oct  9 23:47:47 2019

@author: XCL01
"""

import random
import numpy as np
def random_int_list(start, stop, length):
    start, stop = (int(start), int(stop)) if start <= stop else (int(stop), int(start))
    length = int(abs(length)) if length else 0
    random_list = []
    for i in range(length):
        random_list.append(random.randint(start, stop))
    return random_list
b = random_int_list(0, 1, 8)
for i in range(8):
    a = random_int_list(0, 1, 8)
    b = np.row_stack((b, a))
print(b)